#ifndef  BOARD_LED_DRIVER_H__
#define  BOARD_LED_DRIVER_H__
#include "stm32f10x.h"
#include "stm32f10x_gpio.h"

#define  LED_RED_ON()             GPIO_ResetBits(GPIOA,GPIO_Pin_8)
#define  LED_YELLOW_ON()          GPIO_ResetBits(GPIOD,GPIO_Pin_2)

#define  LED_RED_OFF()            GPIO_SetBits(GPIOA,GPIO_Pin_8)
#define  LED_YELLOW_OFF()         GPIO_SetBits(GPIOD,GPIO_Pin_2)

#define  LED_RED_TWINKLE()        GPIOA->ODR ^= 1 << 8
#define  LED_YELLOW_TWINKLE()     GPIOD->ODR ^= 1 << 2

void Led_config(void);    

#endif